#include "element.h"
#include "visitor.h"
#include <iostream>

int main(int argc,char* argv[])
{
    Visitor* vis = new ConcreteVisitorA();
    Element* elmA = new ConcreteElementA();
    Element* elmB = new ConcreteElementB();
    
    elmA->Accept(vis);
    elmB->Accept(vis);

    delete elmA;
    delete elmB;
    delete vis;
    return 0;
}

